package com.example.service.impl;

import com.example.dao.BookDao;
import com.example.dao.impl.BookDaoImpl;
import com.example.service.BookService;

public class BookServiceImpl implements BookService {
    private BookDao bookDao;
    private int age;
    private String name;

    private Character sex;
    @Override
    public void save() {
        System.out.println("book service save!"+name+","+age+","+sex);
        bookDao.save();
    }

    public BookServiceImpl() {
    }

    public BookServiceImpl(BookDao bookDao, int age, String name, Character sex) {
        this.bookDao = bookDao;
        this.age = age;
        this.name = name;
        this.sex = sex;
    }

    public void setBookDao(BookDao bookDao) {
        this.bookDao = bookDao;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setName(String name) {
        this.name = name;
    }
}
